import automaton.CoinSortAutomaton;
import coins.Coin;
import coins.Euro1;
import coins.Euro2;

///////////////////////////////////////////////////////// File TestCoinSort.java /////////////////////////////////////////////////
public class TestCoinSort {
	public static void main (String[] args) {
		Coin c;
		int i;
		for (i = 0; i < 10; i++) {
			if (i % 2 == 1)
			c = new Euro1();
			else
			c = new Euro2();

			CoinSortAutomaton.automaton.throwInto(c);
		}

		try{
			Thread.sleep(500);
		}
		catch(InterruptedException ie){
		}

	CoinSortAutomaton.automaton.printResult();
	}
}